<h2>Players of [<span class="highlight"><%= @team.name %></span>]</h2>
<table class="crud">
	<tr>
		<th>#</th>
		<th>Name</th>
	</tr>
	<% for player in @players %>
		<tr>
			<td><%= player.number %></td>
			<td><%= player.name %></td>
			<td><%= link_to 'Edit', edit_team_player_path(@team, player) %></td>
		</tr>
	<% end %>
</table>

<%= link_to 'Add a player', new_team_player_path(@team) %>